package com.oa.official;

import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@Slf4j
@SpringBootApplication
@EnableTransactionManagement
@MapperScan(basePackages = {"com.oa.official.mapper"})
public class OaApplication {
    public static void main(String[] args) {
        SpringApplication.run(OaApplication.class,args);
        log.info("Oa项目启动成功,端口:{}",7561);
    }

    @Bean
    public ObjectMapper getMapper(){
        return new ObjectMapper();
    }
}
